package cn.fuck;

public class Q20 {
    private int y = 3;
    private static int x = 9;
    //B.内部类可用private或protected修饰符修饰
    protected class prof{
        public void show() {
            System.out.println(x + y);
        }
        public prof() {
            x = 10;
        }
    }
    private class pif{
        void show() {
            System.out.println(x + y);
        }
        public pif() {
            x = 11;
        }
    }
    // 只能使用外部的静态字段
    static class sf{
        static int i;
        public void show() {
            System.out.println(x);
        }
    }
}
